Optimal. Leaf size=178 \[ \frac{(e x)^{m+1} \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{d x^n}{c}\right ) (A d (b c (m+1)-a d (m-n+1))+B c (a d (m+1)-b c (m+n+1)))}{c^2 d^2 e (m+1) n}-\frac{(e x)^{m+1} (b c-a d) \left (A+B x^n\right )}{c d e n \left (c+d x^n\right )}-\frac{B (e x)^{m+1} (a d (m+1)-b c (m+n+1))}{c d^2 e (m+1) n} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.698718, antiderivative size = 178, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 29, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.103 \[ \frac{(e x)^{m+1} \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{d x^n}{c}\right ) (A d (b c (m+1)-a d (m-n+1))+B c (a d (m+1)-b c (m+n+1)))}{c^2 d^2 e (m+1) n}-\frac{(e x)^{m+1} (b c-a d) \left (A+B x^n\right )}{c d e n \left (c+d x^n\right )}-\frac{B (e x)^{m+1} (a d (m+1)-b c (m+n+1))}{c d^2 e (m+1) n} \]
Antiderivative was successfully verified.
[In] Int[((e*x)^m*(a + b*x^n)*(A + B*x^n))/(c + d*x^n)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 46.9914, size = 148, normalized size = 0.83 \[ - \frac{b \left (e x\right )^{m + 1} \left (- A d n + \left (A d - B c\right ) \left (m + n + 1\right )\right )}{c d^{2} e n \left (m + 1\right )} + \frac{\left (e x\right )^{m + 1} \left (a + b x^{n}\right ) \left (A d - B c\right )}{c d e n \left (c + d x^{n}\right )} - \frac{\left (e x\right )^{m + 1} \left (a d \left (- A d n + \left (m + 1\right ) \left (A d - B c\right )\right ) - b c \left (- A d n + \left (A d - B c\right ) \left (m + n + 1\right )\right )\right ){{}_{2}F_{1}\left (\begin{matrix} 1, \frac{m + 1}{n} \\ \frac{m + n + 1}{n} \end{matrix}\middle |{- \frac{d x^{n}}{c}} \right )}}{c^{2} d^{2} e n \left (m + 1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x)**m*(a+b*x**n)*(A+B*x**n)/(c+d*x**n)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.408161, size = 193, normalized size = 1.08 \[ \frac{x (e x)^m \left (-\frac{\, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{d x^n}{c}\right ) (a d (A d (m-n+1)-B c (m+1))+b c (B c (m+n+1)-A d (m+1)))}{m+1}+\frac{a d (A d (m-n+1)-B c (m+1))+b c (B c (m+n+1)-A d (m+1))}{m+1}+\frac{c (b c-a d) (B c-A d)}{c+d x^n}+a d \left (\frac{A d (-m+n-1)}{m+1}+B c\right )+b c (A d-B c)\right )}{c^2 d^2 n} \]
Antiderivative was successfully verified.
[In] Integrate[((e*x)^m*(a + b*x^n)*(A + B*x^n))/(c + d*x^n)^2,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 0.078, size = 0, normalized size = 0. \[ \int{\frac{ \left ( ex \right ) ^{m} \left ( a+b{x}^{n} \right ) \left ( A+B{x}^{n} \right ) }{ \left ( c+d{x}^{n} \right ) ^{2}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x)^m*(a+b*x^n)*(A+B*x^n)/(c+d*x^n)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ -{\left ({\left (a d^{2} e^{m}{\left (m - n + 1\right )} - b c d e^{m}{\left (m + 1\right )}\right )} A +{\left (b c^{2} e^{m}{\left (m + n + 1\right )} - a c d e^{m}{\left (m + 1\right )}\right )} B\right )} \int \frac{x^{m}}{c d^{3} n x^{n} + c^{2} d^{2} n}\,{d x} + \frac{B b c d e^{m} n x e^{\left (m \log \left (x\right ) + n \log \left (x\right )\right )} -{\left ({\left (b c d e^{m}{\left (m + 1\right )} - a d^{2} e^{m}{\left (m + 1\right )}\right )} A -{\left (b c^{2} e^{m}{\left (m + n + 1\right )} - a c d e^{m}{\left (m + 1\right )}\right )} B\right )} x x^{m}}{{\left (m n + n\right )} c d^{3} x^{n} +{\left (m n + n\right )} c^{2} d^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(b*x^n + a)*(e*x)^m/(d*x^n + c)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (B b x^{2 \, n} + A a +{\left (B a + A b\right )} x^{n}\right )} \left (e x\right )^{m}}{d^{2} x^{2 \, n} + 2 \, c d x^{n} + c^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(b*x^n + a)*(e*x)^m/(d*x^n + c)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x)**m*(a+b*x**n)*(A+B*x**n)/(c+d*x**n)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (B x^{n} + A\right )}{\left (b x^{n} + a\right )} \left (e x\right )^{m}}{{\left (d x^{n} + c\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(b*x^n + a)*(e*x)^m/(d*x^n + c)^2,x, algorithm="giac")
[Out]